using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using EIMS.Models;

namespace EIMS.Models.ViewModels
{
    public class SupplierDetailViewModel
    {
        public Supplier? Supplier { get; set; }
        public IEnumerable<SupplierContact>? Contacts { get; set; }
        public IEnumerable<SupplierTransaction>? Transactions { get; set; }

        [Display(Name = "交易次数")]
        public int TransactionCount { get; set; }

        [Display(Name = "交易总金额")]
        [DataType(DataType.Currency)]
        public decimal TotalTransactionAmount { get; set; }

        [Display(Name = "未付款金额")]
        [DataType(DataType.Currency)]
        public decimal UnpaidAmount { get; set; }
    }
} 